﻿<%@ Import Namespace="System.Data" %>

<%@ Page Title="Retreats for Redemptorist Retreat Center" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ViewRetreats.aspx.cs" Inherits="WingtipToys._Default" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    <script ="JavaScript">
        function start_tour() {
            var tour = window.open("Tour/index.html", "Tour", "height=315,width=550,menubar=no,resizable=no,location=no,toolbar=no");
        }
    </script>
    
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h3 style="text-align: center">Retreats</h3>
            </hgroup>            
        </div>
    </section>
</asp:Content>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    
    <asp:GridView ID="GridView1" runat="server" DataSourceID="retreatsDatasource">
        <Columns>
            <asp:CommandField ShowSelectButton="True" />
            <asp:CommandField ShowEditButton="True" />
            <asp:CommandField ShowDeleteButton="True" />
        </Columns>
    </asp:GridView>
    
    <asp:SqlDataSource ID="retreatsDatasource" runat="server"
	        ConnectionString="<%$ ConnectionStrings:RRC_Connection %>"	        
	        SelectCommand="SELECT * FROM dbo.Retreat" >
        </asp:SqlDataSource>

</asp:Content>